package com.fire.aba;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zwd
 * @date 2021/8/16
 * @email zwd@hhh.com
 */
public class AbaMain {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context =
				new ClassPathXmlApplicationContext("aba.xml");
		A a = context.getBean(A.class);
		B aToB = a.getB();
		System.out.println(aToB);
		B  b = context.getBean(B.class);
		A bToA = b.getA();
		System.out.println(bToA);
	}
}
